package com.ryskoo.common.dto.systemlog;

import com.ryskoo.common.dto.BasicDTO;

/**
 * @author Shawn
 */
public class LoginLogDTO extends BasicDTO {
    private static final long serialVersionUID = -2126985964940554635L;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 登录账户
     */
    private String loginName;

    /**
     * 用户名
     */
    private String username;

    /**
     * 平台 0-平台/1-商户
     */
    private int plat;

    /**
     * 操作类型 1-登入/2-登出
     */
    private int type;

    /**
     * 登录/登出时间
     */
    private String time;

    /**
     * 登录/登出ip
     */
    private String ip;

    /**
     * 所属商户id
     */
    private String vendorId;

    /**
     * 所属商户名称
     */
    private String vendorName;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getPlat() {
        return plat;
    }

    public void setPlat(int plat) {
        this.plat = plat;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getVendorId() {
        return vendorId;
    }

    public void setVendorId(String vendorId) {
        this.vendorId = vendorId;
    }

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    @Override
    public String toString() {
        return "LoginLogDTO{" +
                "userId='" + userId + '\'' +
                ", loginName='" + loginName + '\'' +
                ", username='" + username + '\'' +
                ", plat=" + plat +
                ", type=" + type +
                ", time='" + time + '\'' +
                ", ip='" + ip + '\'' +
                ", vendorId='" + vendorId + '\'' +
                ", vendorName='" + vendorName + '\'' +
                "} " + super.toString();
    }
}
